package com.ruoyi.system.service;

import java.util.List;
import java.util.Map;
import com.ruoyi.system.domain.IdleAffiliateCpaIncomeDetail;

/**
 * 闲鱼联盟CPA收入明细Service接口
 * 
 * @author ruoyi
 */
public interface IIdleAffiliateCpaIncomeDetailService 
{
    /**
     * 查询闲鱼联盟CPA收入明细
     * 
     * @param id 闲鱼联盟CPA收入明细主键
     * @return 闲鱼联盟CPA收入明细
     */
    public IdleAffiliateCpaIncomeDetail selectIdleAffiliateCpaIncomeDetailById(Long id);

    /**
     * 查询闲鱼联盟CPA收入明细列表
     * 
     * @param idleAffiliateCpaIncomeDetail 闲鱼联盟CPA收入明细
     * @return 闲鱼联盟CPA收入明细集合
     */
    public List<IdleAffiliateCpaIncomeDetail> selectIdleAffiliateCpaIncomeDetailList(IdleAffiliateCpaIncomeDetail idleAffiliateCpaIncomeDetail);

    /**
     * 新增闲鱼联盟CPA收入明细
     * 
     * @param idleAffiliateCpaIncomeDetail 闲鱼联盟CPA收入明细
     * @return 结果
     */
    public int insertIdleAffiliateCpaIncomeDetail(IdleAffiliateCpaIncomeDetail idleAffiliateCpaIncomeDetail);

    /**
     * 修改闲鱼联盟CPA收入明细
     * 
     * @param idleAffiliateCpaIncomeDetail 闲鱼联盟CPA收入明细
     * @return 结果
     */
    public int updateIdleAffiliateCpaIncomeDetail(IdleAffiliateCpaIncomeDetail idleAffiliateCpaIncomeDetail);

    /**
     * 批量删除闲鱼联盟CPA收入明细
     * 
     * @param ids 需要删除的闲鱼联盟CPA收入明细主键集合
     * @return 结果
     */
    public int deleteIdleAffiliateCpaIncomeDetailByIds(Long[] ids);

    /**
     * 删除闲鱼联盟CPA收入明细信息
     * 
     * @param id 闲鱼联盟CPA收入明细主键
     * @return 结果
     */
    public int deleteIdleAffiliateCpaIncomeDetailById(Long id);

    /**
     * 根据账单ID查询闲鱼联盟CPA收入明细
     * 
     * @param billId 账单ID
     * @return 闲鱼联盟CPA收入明细
     */
    public IdleAffiliateCpaIncomeDetail selectIdleAffiliateCpaIncomeDetailByBillId(String billId);

    /**
     * 根据子发布者ID查询闲鱼联盟CPA收入明细
     * 
     * @param subPublisherId 子发布者ID
     * @return 闲鱼联盟CPA收入明细
     */
    public List<IdleAffiliateCpaIncomeDetail> selectIdleAffiliateCpaIncomeDetailBySubPublisherId(String subPublisherId);

    /**
     * 根据被邀请者ID查询闲鱼联盟CPA收入明细
     * 
     * @param inviteeId 被邀请者ID
     * @return 闲鱼联盟CPA收入明细
     */
    public List<IdleAffiliateCpaIncomeDetail> selectIdleAffiliateCpaIncomeDetailByInviteeId(String inviteeId);

    /**
     * 根据活动ID查询闲鱼联盟CPA收入明细
     * 
     * @param campaignId 活动ID
     * @return 闲鱼联盟CPA收入明细
     */
    public List<IdleAffiliateCpaIncomeDetail> selectIdleAffiliateCpaIncomeDetailByCampaignId(String campaignId);

    /**
     * 获取CPA收入明细的统计信息
     * 
     * @return 统计信息，包含总金额、已结算金额、未结算金额和差值
     */
    public Map<String, Object> getCpaIncomeStatistics();
} 